{% extends 'base_user.html' %}
{% load staticfiles %}

{% block title %}
    注册
{% endblock %}

{% block form_box %}
    <div class="login-box">
        <form action="/user/register/" method="post">
            <img src="{% static 'user/img/avatar.svg' %}" alt="" class="avatar">
            <h2>注册</h2>
            <div class="input-group">
                <div class="icon">
                    <i class="fa fa-user"></i>
                </div>
                <div>
                    <h5>用户名</h5>
                    <input type="text" class="input" name="username">
                </div>
            </div>
            <div class="input-group">
                <div class="icon">
                    <i class="fa fa-lock"></i>
                </div>
                <div>
                    <h5>密码</h5>
                    <input type="password" class="input" name="password">
                </div>
            </div>
            <div class="input-group">
                <div class="icon">
                    <i class="fa fa-lock"></i>
                </div>
                <div>
                    <h5>确认密码</h5>
                    <input type="password" class="input" name="repeat_password">
                </div>
            </div>
            <a href="/user/login/">已有账号?直接登录</a>
            <input type="submit" class="btn" value="注册">
        </form>
    </div>

{% endblock %}